package com.ehome.poct.core.service.rpc;

import com.ehome.poct.core.api.vo.MaterialBloodBoardVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.validation.constraints.NotBlank;

/**
 * @description:
 * @auther: muqiu
 * @date: 2022/7/26 16:34
 */
@FeignClient(value = "${service.erp-material:}${service.suffix.erp-material:}", path = "/materialBloodBoard", contextId = "materialBloodBoard")
public interface CellErpRpc {
    /**
     * 获取板子详情
     * @param boardSno
     * @return
     */
    @GetMapping("/getMaterialBoardDetail/{boardSno}")
    MaterialBloodBoardVO getMaterialBoardDetail(@PathVariable @NotBlank(message = "boardSno不能为空") String boardSno);
}
